package com.elric.mall.model;

import java.util.ArrayList;
import java.util.List;

public class KzNewProjectExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public KzNewProjectExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andBuildUnitCodeIsNull() {
            addCriterion("build_unit_code is null");
            return (Criteria) this;
        }

        public Criteria andBuildUnitCodeIsNotNull() {
            addCriterion("build_unit_code is not null");
            return (Criteria) this;
        }

        public Criteria andBuildUnitCodeEqualTo(String value) {
            addCriterion("build_unit_code =", value, "buildUnitCode");
            return (Criteria) this;
        }

        public Criteria andBuildUnitCodeNotEqualTo(String value) {
            addCriterion("build_unit_code <>", value, "buildUnitCode");
            return (Criteria) this;
        }

        public Criteria andBuildUnitCodeGreaterThan(String value) {
            addCriterion("build_unit_code >", value, "buildUnitCode");
            return (Criteria) this;
        }

        public Criteria andBuildUnitCodeGreaterThanOrEqualTo(String value) {
            addCriterion("build_unit_code >=", value, "buildUnitCode");
            return (Criteria) this;
        }

        public Criteria andBuildUnitCodeLessThan(String value) {
            addCriterion("build_unit_code <", value, "buildUnitCode");
            return (Criteria) this;
        }

        public Criteria andBuildUnitCodeLessThanOrEqualTo(String value) {
            addCriterion("build_unit_code <=", value, "buildUnitCode");
            return (Criteria) this;
        }

        public Criteria andBuildUnitCodeLike(String value) {
            addCriterion("build_unit_code like", value, "buildUnitCode");
            return (Criteria) this;
        }

        public Criteria andBuildUnitCodeNotLike(String value) {
            addCriterion("build_unit_code not like", value, "buildUnitCode");
            return (Criteria) this;
        }

        public Criteria andBuildUnitCodeIn(List<String> values) {
            addCriterion("build_unit_code in", values, "buildUnitCode");
            return (Criteria) this;
        }

        public Criteria andBuildUnitCodeNotIn(List<String> values) {
            addCriterion("build_unit_code not in", values, "buildUnitCode");
            return (Criteria) this;
        }

        public Criteria andBuildUnitCodeBetween(String value1, String value2) {
            addCriterion("build_unit_code between", value1, value2, "buildUnitCode");
            return (Criteria) this;
        }

        public Criteria andBuildUnitCodeNotBetween(String value1, String value2) {
            addCriterion("build_unit_code not between", value1, value2, "buildUnitCode");
            return (Criteria) this;
        }

        public Criteria andBuildUnitNameIsNull() {
            addCriterion("build_unit_name is null");
            return (Criteria) this;
        }

        public Criteria andBuildUnitNameIsNotNull() {
            addCriterion("build_unit_name is not null");
            return (Criteria) this;
        }

        public Criteria andBuildUnitNameEqualTo(String value) {
            addCriterion("build_unit_name =", value, "buildUnitName");
            return (Criteria) this;
        }

        public Criteria andBuildUnitNameNotEqualTo(String value) {
            addCriterion("build_unit_name <>", value, "buildUnitName");
            return (Criteria) this;
        }

        public Criteria andBuildUnitNameGreaterThan(String value) {
            addCriterion("build_unit_name >", value, "buildUnitName");
            return (Criteria) this;
        }

        public Criteria andBuildUnitNameGreaterThanOrEqualTo(String value) {
            addCriterion("build_unit_name >=", value, "buildUnitName");
            return (Criteria) this;
        }

        public Criteria andBuildUnitNameLessThan(String value) {
            addCriterion("build_unit_name <", value, "buildUnitName");
            return (Criteria) this;
        }

        public Criteria andBuildUnitNameLessThanOrEqualTo(String value) {
            addCriterion("build_unit_name <=", value, "buildUnitName");
            return (Criteria) this;
        }

        public Criteria andBuildUnitNameLike(String value) {
            addCriterion("build_unit_name like", value, "buildUnitName");
            return (Criteria) this;
        }

        public Criteria andBuildUnitNameNotLike(String value) {
            addCriterion("build_unit_name not like", value, "buildUnitName");
            return (Criteria) this;
        }

        public Criteria andBuildUnitNameIn(List<String> values) {
            addCriterion("build_unit_name in", values, "buildUnitName");
            return (Criteria) this;
        }

        public Criteria andBuildUnitNameNotIn(List<String> values) {
            addCriterion("build_unit_name not in", values, "buildUnitName");
            return (Criteria) this;
        }

        public Criteria andBuildUnitNameBetween(String value1, String value2) {
            addCriterion("build_unit_name between", value1, value2, "buildUnitName");
            return (Criteria) this;
        }

        public Criteria andBuildUnitNameNotBetween(String value1, String value2) {
            addCriterion("build_unit_name not between", value1, value2, "buildUnitName");
            return (Criteria) this;
        }

        public Criteria andProjectCodeIsNull() {
            addCriterion("project_code is null");
            return (Criteria) this;
        }

        public Criteria andProjectCodeIsNotNull() {
            addCriterion("project_code is not null");
            return (Criteria) this;
        }

        public Criteria andProjectCodeEqualTo(String value) {
            addCriterion("project_code =", value, "projectCode");
            return (Criteria) this;
        }

        public Criteria andProjectCodeNotEqualTo(String value) {
            addCriterion("project_code <>", value, "projectCode");
            return (Criteria) this;
        }

        public Criteria andProjectCodeGreaterThan(String value) {
            addCriterion("project_code >", value, "projectCode");
            return (Criteria) this;
        }

        public Criteria andProjectCodeGreaterThanOrEqualTo(String value) {
            addCriterion("project_code >=", value, "projectCode");
            return (Criteria) this;
        }

        public Criteria andProjectCodeLessThan(String value) {
            addCriterion("project_code <", value, "projectCode");
            return (Criteria) this;
        }

        public Criteria andProjectCodeLessThanOrEqualTo(String value) {
            addCriterion("project_code <=", value, "projectCode");
            return (Criteria) this;
        }

        public Criteria andProjectCodeLike(String value) {
            addCriterion("project_code like", value, "projectCode");
            return (Criteria) this;
        }

        public Criteria andProjectCodeNotLike(String value) {
            addCriterion("project_code not like", value, "projectCode");
            return (Criteria) this;
        }

        public Criteria andProjectCodeIn(List<String> values) {
            addCriterion("project_code in", values, "projectCode");
            return (Criteria) this;
        }

        public Criteria andProjectCodeNotIn(List<String> values) {
            addCriterion("project_code not in", values, "projectCode");
            return (Criteria) this;
        }

        public Criteria andProjectCodeBetween(String value1, String value2) {
            addCriterion("project_code between", value1, value2, "projectCode");
            return (Criteria) this;
        }

        public Criteria andProjectCodeNotBetween(String value1, String value2) {
            addCriterion("project_code not between", value1, value2, "projectCode");
            return (Criteria) this;
        }

        public Criteria andProjectNameIsNull() {
            addCriterion("project_name is null");
            return (Criteria) this;
        }

        public Criteria andProjectNameIsNotNull() {
            addCriterion("project_name is not null");
            return (Criteria) this;
        }

        public Criteria andProjectNameEqualTo(String value) {
            addCriterion("project_name =", value, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameNotEqualTo(String value) {
            addCriterion("project_name <>", value, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameGreaterThan(String value) {
            addCriterion("project_name >", value, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameGreaterThanOrEqualTo(String value) {
            addCriterion("project_name >=", value, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameLessThan(String value) {
            addCriterion("project_name <", value, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameLessThanOrEqualTo(String value) {
            addCriterion("project_name <=", value, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameLike(String value) {
            addCriterion("project_name like", value, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameNotLike(String value) {
            addCriterion("project_name not like", value, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameIn(List<String> values) {
            addCriterion("project_name in", values, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameNotIn(List<String> values) {
            addCriterion("project_name not in", values, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameBetween(String value1, String value2) {
            addCriterion("project_name between", value1, value2, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameNotBetween(String value1, String value2) {
            addCriterion("project_name not between", value1, value2, "projectName");
            return (Criteria) this;
        }

        public Criteria andPlanTotalInvestIsNull() {
            addCriterion("plan_total_invest is null");
            return (Criteria) this;
        }

        public Criteria andPlanTotalInvestIsNotNull() {
            addCriterion("plan_total_invest is not null");
            return (Criteria) this;
        }

        public Criteria andPlanTotalInvestEqualTo(Float value) {
            addCriterion("plan_total_invest =", value, "planTotalInvest");
            return (Criteria) this;
        }

        public Criteria andPlanTotalInvestNotEqualTo(Float value) {
            addCriterion("plan_total_invest <>", value, "planTotalInvest");
            return (Criteria) this;
        }

        public Criteria andPlanTotalInvestGreaterThan(Float value) {
            addCriterion("plan_total_invest >", value, "planTotalInvest");
            return (Criteria) this;
        }

        public Criteria andPlanTotalInvestGreaterThanOrEqualTo(Float value) {
            addCriterion("plan_total_invest >=", value, "planTotalInvest");
            return (Criteria) this;
        }

        public Criteria andPlanTotalInvestLessThan(Float value) {
            addCriterion("plan_total_invest <", value, "planTotalInvest");
            return (Criteria) this;
        }

        public Criteria andPlanTotalInvestLessThanOrEqualTo(Float value) {
            addCriterion("plan_total_invest <=", value, "planTotalInvest");
            return (Criteria) this;
        }

        public Criteria andPlanTotalInvestIn(List<Float> values) {
            addCriterion("plan_total_invest in", values, "planTotalInvest");
            return (Criteria) this;
        }

        public Criteria andPlanTotalInvestNotIn(List<Float> values) {
            addCriterion("plan_total_invest not in", values, "planTotalInvest");
            return (Criteria) this;
        }

        public Criteria andPlanTotalInvestBetween(Float value1, Float value2) {
            addCriterion("plan_total_invest between", value1, value2, "planTotalInvest");
            return (Criteria) this;
        }

        public Criteria andPlanTotalInvestNotBetween(Float value1, Float value2) {
            addCriterion("plan_total_invest not between", value1, value2, "planTotalInvest");
            return (Criteria) this;
        }

        public Criteria andInvest2022IsNull() {
            addCriterion("invest_2022 is null");
            return (Criteria) this;
        }

        public Criteria andInvest2022IsNotNull() {
            addCriterion("invest_2022 is not null");
            return (Criteria) this;
        }

        public Criteria andInvest2022EqualTo(Float value) {
            addCriterion("invest_2022 =", value, "invest2022");
            return (Criteria) this;
        }

        public Criteria andInvest2022NotEqualTo(Float value) {
            addCriterion("invest_2022 <>", value, "invest2022");
            return (Criteria) this;
        }

        public Criteria andInvest2022GreaterThan(Float value) {
            addCriterion("invest_2022 >", value, "invest2022");
            return (Criteria) this;
        }

        public Criteria andInvest2022GreaterThanOrEqualTo(Float value) {
            addCriterion("invest_2022 >=", value, "invest2022");
            return (Criteria) this;
        }

        public Criteria andInvest2022LessThan(Float value) {
            addCriterion("invest_2022 <", value, "invest2022");
            return (Criteria) this;
        }

        public Criteria andInvest2022LessThanOrEqualTo(Float value) {
            addCriterion("invest_2022 <=", value, "invest2022");
            return (Criteria) this;
        }

        public Criteria andInvest2022In(List<Float> values) {
            addCriterion("invest_2022 in", values, "invest2022");
            return (Criteria) this;
        }

        public Criteria andInvest2022NotIn(List<Float> values) {
            addCriterion("invest_2022 not in", values, "invest2022");
            return (Criteria) this;
        }

        public Criteria andInvest2022Between(Float value1, Float value2) {
            addCriterion("invest_2022 between", value1, value2, "invest2022");
            return (Criteria) this;
        }

        public Criteria andInvest2022NotBetween(Float value1, Float value2) {
            addCriterion("invest_2022 not between", value1, value2, "invest2022");
            return (Criteria) this;
        }

        public Criteria andInvest2023IsNull() {
            addCriterion("invest_2023 is null");
            return (Criteria) this;
        }

        public Criteria andInvest2023IsNotNull() {
            addCriterion("invest_2023 is not null");
            return (Criteria) this;
        }

        public Criteria andInvest2023EqualTo(Float value) {
            addCriterion("invest_2023 =", value, "invest2023");
            return (Criteria) this;
        }

        public Criteria andInvest2023NotEqualTo(Float value) {
            addCriterion("invest_2023 <>", value, "invest2023");
            return (Criteria) this;
        }

        public Criteria andInvest2023GreaterThan(Float value) {
            addCriterion("invest_2023 >", value, "invest2023");
            return (Criteria) this;
        }

        public Criteria andInvest2023GreaterThanOrEqualTo(Float value) {
            addCriterion("invest_2023 >=", value, "invest2023");
            return (Criteria) this;
        }

        public Criteria andInvest2023LessThan(Float value) {
            addCriterion("invest_2023 <", value, "invest2023");
            return (Criteria) this;
        }

        public Criteria andInvest2023LessThanOrEqualTo(Float value) {
            addCriterion("invest_2023 <=", value, "invest2023");
            return (Criteria) this;
        }

        public Criteria andInvest2023In(List<Float> values) {
            addCriterion("invest_2023 in", values, "invest2023");
            return (Criteria) this;
        }

        public Criteria andInvest2023NotIn(List<Float> values) {
            addCriterion("invest_2023 not in", values, "invest2023");
            return (Criteria) this;
        }

        public Criteria andInvest2023Between(Float value1, Float value2) {
            addCriterion("invest_2023 between", value1, value2, "invest2023");
            return (Criteria) this;
        }

        public Criteria andInvest2023NotBetween(Float value1, Float value2) {
            addCriterion("invest_2023 not between", value1, value2, "invest2023");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}